how to assign r and s configuration